<%@ page language="java" import="java.util.*,com.king.cms.db.*,com.king.cms.common.*" pageEncoding="utf-8"%>
<%@ include file="/hotel/include/css.jsp"%><%-- /*包含css样式表*/ --%>
 <%
   int pow=0;
   List dataList =(List) request.getAttribute("data");
 %> 
<html>
<head>
<title> </title>
<meta  http-equiv="Expires"     CONTENT="0">           
<meta  http-equiv="Cache-Control"     CONTENT="no-cache">           
<meta  http-equiv="Pragma"     CONTENT="no-cache">  
<script language="JavaScript" src="<%=path%>/js/generalcheck.js"></script> 
<script language="javascript"> 
var trKiobj;
	  function startLcd(str,id){
	  	 
	    openwindow('<%=path%>/invoke.do?action=start&invokefilePath='+str+"&id="+id,'400','300','');
	  }
	  function selmm(trobj,id)
			{
				if(trobj != null){
					deptid =id;
					if(trKiobj != null)
					   trKiobj.className='td3';
				     trobj.className='td1';
				}
			 trKiobj=trobj;
			} 
		  
</script>
</head>

<body background="<%=imgpath%>top3.gif" leftmargin="0" topmargin="0">
<form name="form1" method="post" action="">
	<center>	
	<table border="0" cellpadding="0" cellspacing="0" width="100%" height="2">
    <tr>
      <td width="9" height="1">
      </td>
      <td  height="1" background="">
      <p align="center"><b>远程控制</b></td>
      <td width="9" height="1">
      </td>
    </tr>
    </table>

	<table border="0" cellpadding="0" cellspacing="0" width="80%" height="1">
		<tr>
		  <td height="3">
		  </td>
		</tr>
	</table>       
	<table height="48" border="0" cellpadding="2" cellspacing="1" class="bg_table" style="width:90%" bordercolor="#111111">
	   <tr class="top_td"> 
	   <td width="5%">序号</td> 
    <td width="50%">终端名称</td>
    
    <td width="">操作</td>
     
  
  </tr>
 <%if(dataList.size()>0){
        for(int i=0;i<dataList.size();i++){
                 Map m = (Map)dataList.get(i);
                 
    %>
  <tr <%if(i%2==1){%> class="td2" onMouseOver="this.className='td5'" onMouseOut="this.className='td2'"<%} else {%>class="td3" onMouseOver="this.className='td5'" onMouseOut="this.className='td3'" <%}%> onclick="selmm(this,<%if(m.get("ID") != null) out.print(m.get("ID")); %>)" onMouseOver="this.className='td5'" onMouseOut=" ">
    <td><%=(i+1)%></td> 
    <td><%=StringUtil.NULL2Blank(m.get("CLIENT_NAME")+"") %></td>
    
    <td><a href="javaScript:startLcd('<%=m.get("REMOTE_INVOKE_PATH")+""%>','<%=m.get("ID")+""%>')">启动</a> </td>
    
 
  </tr>
    <%}} else{ %>
    <tr class="td2"> 
		<td colspan="10" align="center"><font color="red">没有终端</font></td>
	  </tr>
    <%} %>
 
     </table>
  </center>

 </form>
</body>
</html> 
